package com.xiangge.domain;

public class Student {
    // 定义学生类的属性
    private String sid;
    private String name;
    private int age;
    private String birthday;

    // 创建每个类的构造方法
    public Student() {
    }
    public Student(String sid, String name, int age, String birthday) {
        this.sid = sid;
        this.name = name;
        this.age = age;
        this.birthday = birthday;
    }

    // 创建每个属性的对应set和get方法
    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }
    @Override
    public String toString() {
        return "学号：" + sid + "   姓名：" + name + "   年龄：" + age + "   生日：" + birthday;
    }
}
